//
//  SYNewsModel.m
//  MicroNews
//
//  Created by tongcheng on 15/10/21.
//  Copyright © 2015年 siyue. All rights reserved.
//

#import "SYNewsModel.h"

@implementation SYNewsModel

//-(void)setReplyCount:(NSString *)replyCount
//{
//    
//    //设置回帖数
//    NSString *reply=nil;
//    if([replyCount intValue]<10000){  //如果小于1万的话
//        reply=[NSString stringWithFormat:@"%d跟帖",[replyCount intValue]];
//        // NSLog(@"**********%@",replyCount);
//    }else{  //如果大于1万的话
//        double counts=[replyCount intValue]/10000.0;  //获得回帖数除以10000的商
//        reply=[NSString stringWithFormat:@"%.1f万跟帖",counts];
//        reply=[reply stringByReplacingOccurrencesOfString:@".0" withString:@""];
//    }
//    _replyCount=reply;
//    
//}


//- (instancetype)initWithDict:(NSDictionary *)dict
//{
//    self = [super init];
//    if (self) {
//        [self setValuesForKeysWithDictionary:dict];
//    }
//    return self;
//}
//
//+ (instancetype)newsWithDict:(NSDictionary *)dict
//{
//    return [[self alloc] initWithDict:dict];
//}
//
//+ (NSMutableArray *)news
//{
//    NSArray *array = [NSArray arrayWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"News.plist" ofType:nil]];
//    
//    NSMutableArray *arrayM = [NSMutableArray array];
//    for (NSDictionary *dict in array) {
//        [arrayM addObject:[self newsWithDict:dict]];
//    }
//    
//    return arrayM;
//}

@end
